<template>
	<view class="user-chat-button d-flex jc-between ai-center">
		<input type="text" v-model="text" placeholder="文明发言" class="flex-1" />
		<view class="iconfont icon-fabu" @tap="submit"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text:""
			};
		},
		methods:{
			submit(){
				this.$emit('submit',this.text)
				this.text = ""
			}
		}
	}
</script>

<style lang="scss" scoped>
.user-chat-button{
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 120upx;
	padding: 0 20upx;
	background-color: #FFFFFF;
	border-top: 1upx solid #EEEEEE;
	input{
		margin-right: 20upx;
		padding: 10upx 20upx;
		border-radius: 10upx;
		background-color: #f7f7f7;
	}
	view{
		width: 80upx;
		height: 100upx;
		font-size: 60upx;
		color: #333333;
		text-align: center;
	}
}
</style>
